package com.yazi.mxz.common.db.dao;


import com.yazi.mxz.common.entity.beans.Article;
import com.myframework.smhj.hibernate.Searching;
import com.myframework.smhj.hibernate.Page;
import com.myframework.smhj.hibernate.dao.Dao;

public interface ArticleDao extends Dao<Article>{
	
	/**
	 * 获取某分类下的文章(包括子类下的)
	 * @param catId
	 * @param search
	 * @return
	 */
	Page<Article> listByRootCatId(Long catId, Searching search);
	
	/**
	 * 指定删除店铺文章
	 * @param storeId
	 * @param articleIds
	 */
	void deleteByStoreId(long storeId, long[] articleIds);
}
